#include "pdialog.h"

PUBLIC_FUNCTION_BEGIN

PDialog::PDialog(QString qstrTitle, QWidget *parent) :
    m_qstrTitle(qstrTitle), QDialog(parent),
    ui(new Ui::PDialog)
{
    ui->setupUi(this);

    tcpServer.StartListen();
}

PDialog::~PDialog()
{
    delete ui;
}

QString PDialog::GetWindowTitle() const
{
    return m_qstrTitle;
}

PUBLIC_FUNCTION_END

PROTECTED_FUNCTION_BEGIN

bool    PDialog::Init()
{
    setWindowTitle(m_qstrTitle);
    return false;
}

PROTECTED_FUNCTION_END
